<template>
	<view class="container">
		<view class="title">{{item.title}}</view>
		<view class="text_opblack">{{item.create_time}} 发布</view>
		<view class="tips">{{item.content}}</view>
	</view>
</template>

<script>
	import {getTeacherhelperContentsOne} from "../../../static/js/api/preparation.js";
	export default {
		data() {
			return {
				item: {}

			}
		},
		onLoad(option) {
			if(option.itemId){
				this.getItem(option.itemId)
			}
		},
		methods: {
			getItem(itemId){
				getTeacherhelperContentsOne({
					id:itemId
				}).then(res=>{
					console.log(res.content)
					this.item = res.content
				})
			}
		}
	}
</script>

<style lang="scss" scoped>

	.text_opblack {
		color: $uni-text-color-opblack;
		font-size: 24rpx;
		font-weight: 400;
		padding-left:30rpx;
		margin: 20rpx 0;
		text-indent: 1em;
	}

	.text_black {
		color: $uni-text-color-black;
	}

	.text_active {
		color: $uni-color-primary;
	}
	.container{
		width: 100%;
		min-height: 100vh;
		background-color: #fff;
	}
	.title {
		font-size: 32rpx;
		font-weight: bold;
		color: $uni-text-color-black;
		line-height: 120rpx;
		text-align: center;
	}
	.tips{
		font-size: 28rpx;
		line-height: 28rpx;
		padding: 0 30rpx;
		text-indent: 2em;
	}
</style>